// RUN: %clang_cc1 -fsyntax-only -verify -pedantic -Wc++11-compat %s
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic -std=c++98 -Wc++11-compat %s
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic -std=c++11 %s
// Example from the standard
;
;
;
void
;
;
;
T X0<T>::value = 17;
typedef X0<int> XInt;
; // expected-warning{{template-id}}
; // expected-warning{{template-id}}
; // expected-warning{{template-id}}
using namespace N;
;
// expected-warning@-2 {{explicit instantiation of 'N::X1' must occur in namespace 'N'}}
// expected-error@-4 {{explicit instantiation of 'N::X1' must occur in namespace 'N'}}
;
// expected-warning@-2 {{explicit instantiation of 'N::f1' must occur in namespace 'N'}}
// expected-error@-4 {{explicit instantiation of 'N::f1' must occur in namespace 'N'}}