diff options
Diffstat (limited to 'clang/test/CXX/ast-print.cpp')
-rw-r--r-- | clang/test/CXX/ast-print.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CXX/ast-print.cpp b/clang/test/CXX/ast-print.cpp index fb8588d4b13..44b34aa12cf 100644 --- a/clang/test/CXX/ast-print.cpp +++ b/clang/test/CXX/ast-print.cpp @@ -19,3 +19,14 @@ int main() (r->method()); } +// CHECK: if (int a = 1) +// CHECK: while (int a = 1) +// CHECK: switch (int a = 1) + +void f() +{ + if (int a = 1) { } + while (int a = 1) { } + switch (int a = 1) { } +} + |