xref: /aosp_15_r20/external/clang/test/PCH/cxx-reference.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // Test this without pch.
2 // RUN: %clang_cc1 -x c++ -triple %itanium_abi_triple -std=c++11 -include %S/cxx-reference.h -fsyntax-only -emit-llvm -o - %s
3 
4 // Test with pch.
5 // RUN: %clang_cc1 -x c++ -triple %itanium_abi_triple -std=c++11 -emit-pch -o %t %S/cxx-reference.h
6 // RUN: %clang_cc1 -x c++ -triple %itanium_abi_triple -std=c++11 -include-pch %t -fsyntax-only -emit-llvm -o - %s
7