summaryrefslogtreecommitdiffstats
path: root/test/PCH/cxx-typeid.cpp
blob: 534863af21b1c48885acff8443e8e4f25fbb3d20 (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 -verify %s

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

// expected-no-diagnostics

void f() {
    (void)typeid(int);
}
OpenPOWER on IntegriCloud