blob: 5854917da5c7d3b03a1409b3fdd28c4505eced2f [file] [log] [blame]
Richard Smithad762fc2011-04-14 22:09:26 +00001// Test this without pch.
2// RUN: %clang_cc1 -std=c++0x -include %S/cxx-for-range.h -fsyntax-only -emit-llvm -o - %s
3
4// Test with pch.
5// RUN: %clang_cc1 -std=c++0x -emit-pch -o %t %S/cxx-for-range.h
6// RUN: %clang_cc1 -std=c++0x -include-pch %t -fsyntax-only -emit-llvm -o - %s
7
8void h() {
9 f();
10
11 g<int>();
12
13 char a[3] = { 0, 1, 2 };
14 for (auto w : a)
15 for (auto x : S())
16 for (auto y : T())
17 for (auto z : U())
18 ;
19}