llvm-project
19 строк · 442.0 Байт
1// Test this without pch.
2// RUN: %clang_cc1 -x c++ -std=c++11 -include %S/cxx-for-range.h -emit-llvm -o - %s
3
4// Test with pch.
5// RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -o %t %S/cxx-for-range.h
6// RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t -emit-llvm -o - %s
7
8void h() {9f();10
11g<int>();12
13char a[3] = { 0, 1, 2 };14for (auto w : a)15for (auto x : S())16for (auto y : T())17for (auto z : U())18;19}
20