Debian Codegraph @

clang/test/PCH/for-loop-init-ternary-operator-statement.cpp

raw
1 // RUN: %clang_cc1 -emit-pch -o %t %s
2 // RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s
3
4 int f() {
5 // CHECK: for (int i = 0; int x = i < 2 ? 1 : 0; i++) {
6 for (int i = 0; int x = i < 2 ? 1 : 0; i++) {
7 return x;
8 }
9 return 0;
10 }
11