diff options
Diffstat (limited to 'clang/test/SemaCXX/ast-print.cpp')
-rw-r--r-- | clang/test/SemaCXX/ast-print.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/ast-print.cpp b/clang/test/SemaCXX/ast-print.cpp index 46b99e0d610..15fdabfe32f 100644 --- a/clang/test/SemaCXX/ast-print.cpp +++ b/clang/test/SemaCXX/ast-print.cpp @@ -41,3 +41,8 @@ struct X { void *operator new (typeof(sizeof(1)), int = 2); }; void f2() { new X; } + +// CHECK: for (int i = 2097, j = 42; false;) +void forInit() { + for (int i = 2097, j = 42; false;) {} +} |