Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only %s |
Douglas Gregor | b117a60 | 2009-09-04 05:53:02 +0000 | [diff] [blame] | 2 | |
Douglas Gregor | c53d0d7 | 2010-04-08 18:16:15 +0000 | [diff] [blame] | 3 | // 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 Gregor | b117a60 | 2009-09-04 05:53:02 +0000 | [diff] [blame] | 9 | template<typename T> |
| 10 | struct __is_pod { |
| 11 | }; |
| 12 | |
| 13 | __is_pod<int> ipi; |