xref: /llvm-project/clang/test/PCH/for-loop-init-ternary-operator-statement.cpp (revision df8d6d95ca64c70b3acc5a4266326966f3e6f93e)
1 // RUN: %clang_cc1 -emit-pch -o %t %s
2 // RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s
3 
f()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 
12