Skip to content

Commit c43c908

Browse files
authored
chore(test): Test macro expansion
1 parent 9d5b07f commit c43c908

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Test
2929
working-directory: build
3030
run: |
31-
ctest -v
31+
ctest --verbose
3232
3333
build-windows:
3434
runs-on: windows-latest
@@ -57,7 +57,7 @@ jobs:
5757
- name: Test
5858
working-directory: build
5959
run: |
60-
ctest -v -C Release
60+
ctest --verbose -C Release
6161
6262
build-emscripten:
6363
runs-on: ubuntu-20.04
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %cxx -verify -E %s -o - | filecheck %s
2+
3+
#define FOR_EACH(V) \
4+
V(aa) \
5+
V(bb) \
6+
V(cc)
7+
8+
#define DECLARE_VAR(v) int v;
9+
10+
int main() { FOR_EACH(DECLARE_VAR) }
11+
12+
// CHECK: int aa;int bb;int cc;

0 commit comments

Comments
 (0)