aboutsummaryrefslogtreecommitdiff
path: root/clang/test/PCH/for-loop-init-ternary-operator-statement.cpp
blob: 8bce3e8eeb3c4130a9c8b6cf8e6df5d170fa6f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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;
}