blob: 41dd544807ea08307b84bfcc891142e7139d27a0 [file] [log] [blame]
Argyrios Kyrtzidis76c38d32010-08-02 07:14:54 +00001// Test this without pch.
Daniel Dunbar18451ea2010-08-11 02:32:03 +00002// RUN: %clang -include %S/cxx-typeid.h -fsyntax-only -Xclang -verify %s
Argyrios Kyrtzidis76c38d32010-08-02 07:14:54 +00003
Daniel Dunbarea901ae2010-08-10 19:32:44 +00004// RUN: %clang -ccc-pch-is-pch -x c++-header -o %t.gch %S/cxx-typeid.h
5// RUN: %clang -ccc-pch-is-pch -include %t -fsyntax-only -Xclang -verify %s
Argyrios Kyrtzidis76c38d32010-08-02 07:14:54 +00006
7void f() {
8 (void)typeid(int);
9}