mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 23:16:05 +00:00

We don't yet support this for the case where a range-based for loop is implicitly rewritten to an ObjC for..in statement. llvm-svn: 343350
9 lines
232 B
C++
9 lines
232 B
C++
// 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) {}
|
|
}
|