Argyrios Kyrtzidis | 76c38d3 | 2010-08-02 07:14:54 +0000 | [diff] [blame] | 1 | // Test this without pch. |
Daniel Dunbar | 18451ea | 2010-08-11 02:32:03 +0000 | [diff] [blame] | 2 | // RUN: %clang -include %S/cxx-typeid.h -fsyntax-only -Xclang -verify %s |
Argyrios Kyrtzidis | 76c38d3 | 2010-08-02 07:14:54 +0000 | [diff] [blame] | 3 | |
Daniel Dunbar | ea901ae | 2010-08-10 19:32:44 +0000 | [diff] [blame] | 4 | // 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 Kyrtzidis | 76c38d3 | 2010-08-02 07:14:54 +0000 | [diff] [blame] | 6 | |
| 7 | void f() { |
| 8 | (void)typeid(int); |
| 9 | } |