aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/cxx-typeid.cpp
blob: 41dd544807ea08307b84bfcc891142e7139d27a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
// Test this without pch.
// RUN: %clang -include %S/cxx-typeid.h -fsyntax-only -Xclang -verify %s

// RUN: %clang -ccc-pch-is-pch -x c++-header -o %t.gch %S/cxx-typeid.h
// RUN: %clang -ccc-pch-is-pch -include %t -fsyntax-only -Xclang -verify %s 

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