blob: 4710294452565a158ee8239d9cc8a7a2b5ed8223 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Eli Friedmand0137332009-12-05 23:03:49 +00002#define T(b) (b) ? 1 : -1
3#define F(b) (b) ? -1 : 1
4
5struct HasVirt { virtual void a(); };
6template<class T> struct InheritPolymorph : HasVirt {};
7int t01[T(__is_polymorphic(InheritPolymorph<int>))];
8