blob: 63ce8f434da32fec449d59617caf5836f61d81c2 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Eli Friedmand0137332009-12-05 23:03:49 +00003#define T(b) (b) ? 1 : -1
4#define F(b) (b) ? -1 : 1
5
6struct HasVirt { virtual void a(); };
7template<class T> struct InheritPolymorph : HasVirt {};
8int t01[T(__is_polymorphic(InheritPolymorph<int>))];
9