1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 template<int i
> struct x
{
4 static const int j
= i
;
15 static const unsigned value
= sizeof(T
);
19 const unsigned X0
<T
>::value
;
21 int array1
[X0
<int>::value
== sizeof(int)? 1 : -1];
23 const unsigned& testX0() { return X0
<int>::value
; }
25 int array2
[X0
<int>::value
== sizeof(int)? 1 : -1];
29 static const unsigned value
;
33 const unsigned X1
<T
>::value
= sizeof(T
);
35 int array3
[X1
<int>::value
== sizeof(int)? 1 : -1];