cxx-for-range.cpp 470 B

12345678910111213141516171819
  1. // Test this without pch.
  2. // RUN: %clang_cc1 -x c++ -std=c++11 -include %S/cxx-for-range.h -fsyntax-only -emit-llvm -o - %s
  3. // Test with pch.
  4. // RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -o %t %S/cxx-for-range.h
  5. // RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t -fsyntax-only -emit-llvm -o - %s
  6. void h() {
  7. f();
  8. g<int>();
  9. char a[3] = { 0, 1, 2 };
  10. for (auto w : a)
  11. for (auto x : S())
  12. for (auto y : T())
  13. for (auto z : U())
  14. ;
  15. }