summaryrefslogtreecommitdiffstats
path: root/test/PCH/cxx-typeid.cpp
blob: 6e622206521ca1f9a3d9fd8676d9eec1cf4e16ff (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test this without pch.
// RUN: %clang_cc1 -include %S/cxx-typeid.h -fsyntax-only -stdlib=libstdc++ -verify %s

// RUN: %clang_cc1 -x c++-header -emit-pch -stdlib=libstdc++ -o %t.pch %S/cxx-typeid.h
// RUN: %clang_cc1 -include-pch %t.pch -fsyntax-only -stdlib=libstdc++ -verify %s

// expected-no-diagnostics

void f() {
    (void)typeid(int);
}