Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / PCH / cxx-for-range.cpp
blob285442faf4bd7c5fecceb46dcd5d57c9f6b936b0
1 // Test this without pch.
2 // RUN: %clang_cc1 -x c++ -std=c++11 -include %S/cxx-for-range.h -emit-llvm -o - %s
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
8 void h() {
9 f();
11 g<int>();
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())