xref: /llvm-project/clang/test/PCH/cxx-typeid.cpp (revision 0f7445b6155e9174d80d82ba00ef8e67f001449b)
1 // Test this without pch.
2 // RUN: %clang_cc1 -include %S/cxx-typeid.h -fsyntax-only -stdlib=libstdc++ -verify %s
3 
4 // RUN: %clang_cc1 -x c++-header -emit-pch -stdlib=libstdc++ -o %t.pch %S/cxx-typeid.h
5 // RUN: %clang_cc1 -include-pch %t.pch -fsyntax-only -stdlib=libstdc++ -verify %s
6 
7 // expected-no-diagnostics
8 
f()9 void f() {
10     (void)typeid(int);
11 }
12