summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp')
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp b/clang/test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp
index 41d5f1baaed..37cae38cac6 100644
--- a/clang/test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp
+++ b/clang/test/CXX/temp/temp.decls/temp.class/temp.static/p1.cpp
@@ -6,7 +6,7 @@ struct X0 {
};
template<typename T>
-T X0<T>::value = 0;
+T X0<T>::value = 0; // expected-error{{initialize}}
struct X1 {
X1(int);
@@ -20,7 +20,7 @@ X1& get_X1() { return X0<X1>::value; }
double*& get_double_ptr() { return X0<int*>::value; } // expected-error{{initialized}}
X2& get_X2() {
- return X0<X2>::value; // FIXME: instantiation should fail!
+ return X0<X2>::value; // expected-note{{instantiation}}
}
template<typename T> T x; // expected-error{{variable 'x' declared as a template}} \ No newline at end of file
OpenPOWER on IntegriCloud