blob: 7cf2004e727f2effd833dda6540ff3a712cf2d46 [file] [log] [blame]
Eli Friedmand0137332009-12-05 23:03:49 +00001// RUN: clang-cc -fsyntax-only -verify %s
2#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