mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 14:16:08 +00:00
12 lines
243 B
C++
12 lines
243 B
C++
// RUN: %clang_cc1 -emit-pch -o %t %s
|
|
// RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s
|
|
|
|
int f() {
|
|
// CHECK: for (int i = 0; int x = i < 2 ? 1 : 0; i++) {
|
|
for (int i = 0; int x = i < 2 ? 1 : 0; i++) {
|
|
return x;
|
|
}
|
|
return 0;
|
|
}
|
|
|