diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
commit | 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (patch) | |
tree | 02a1ac369cb734d0abfa5000dd86e5b7797e6a74 /test/PCH/cxx2a-for-init-statement.cpp | |
parent | c7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (diff) |
Diffstat (limited to 'test/PCH/cxx2a-for-init-statement.cpp')
-rw-r--r-- | test/PCH/cxx2a-for-init-statement.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/PCH/cxx2a-for-init-statement.cpp b/test/PCH/cxx2a-for-init-statement.cpp new file mode 100644 index 0000000000000..2147c0f8a2a17 --- /dev/null +++ b/test/PCH/cxx2a-for-init-statement.cpp @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -emit-pch -std=c++2a -o %t %s +// RUN: %clang_cc1 -std=c++2a -x ast -ast-print %t | FileCheck %s + +void f() { + // CHECK: for (int arr[3]; int n : arr) { + // CHECK-NEXT: } + for (int arr[3]; int n : arr) {} +} |