blob: 2e9203219536e87ca258ce034d8f049e9c95c988 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only %s
Douglas Gregorb117a602009-09-04 05:53:02 +00002
Douglas Gregorc53d0d72010-04-08 18:16:15 +00003// This is a test for an egregious hack in Clang that works around
4// issues with GCC's evolution. libstdc++ 4.2.x uses __is_pod as an
5// identifier (to declare a struct template like the one below), while
6// GCC 4.3 and newer make __is_pod a keyword. Clang treats __is_pod as
7// a keyword *unless* it is introduced following the struct keyword.
8
Douglas Gregorb117a602009-09-04 05:53:02 +00009template<typename T>
10struct __is_pod {
11};
12
13__is_pod<int> ipi;