1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc // expected-no-diagnostics 3*f4a2713aSLionel Sambuc #define T(b) (b) ? 1 : -1 4*f4a2713aSLionel Sambuc #define F(b) (b) ? -1 : 1 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc struct HasVirt { virtual void a(); }; 7*f4a2713aSLionel Sambuc template<class T> struct InheritPolymorph : HasVirt {}; 8*f4a2713aSLionel Sambuc int t01[T(__is_polymorphic(InheritPolymorph<int>))]; 9*f4a2713aSLionel Sambuc 10