2 // RUN: %clang_cc1 -fsyntax-only -verify -include %s -include %s %s
5 // RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s
9 //===----------------------------------------------------------------------===//
13 template <class _Tp
, _Tp __v
>
16 static const _Tp value
= __v
;
19 template <class _Tp
, _Tp __v
>
20 const _Tp TS
<_Tp
, __v
>::value
;
26 //===----------------------------------------------------------------------===//
27 #elif not defined(HEADER2)
30 #error Header inclusion order messed up
33 int g2
= NS::TS
<int, 2>::value
;
35 //===----------------------------------------------------------------------===//
37 //===----------------------------------------------------------------------===//
39 // expected-warning@+1 {{reached main file}}
40 #warning reached main file
42 int g3
= NS::TS
<int, 2>::value
;
44 //===----------------------------------------------------------------------===//