blob: 4710294452565a158ee8239d9cc8a7a2b5ed8223 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -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