xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/PR20110.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3*0a6a1f1dSLionel Sambuc // expected-no-diagnostics
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc // FIXME: These templates should trigger errors in C++11 mode.
6*0a6a1f1dSLionel Sambuc 
7*0a6a1f1dSLionel Sambuc template <char const *p>
8*0a6a1f1dSLionel Sambuc class A {
get_p()9*0a6a1f1dSLionel Sambuc   char const *get_p() { return *p; }
10*0a6a1f1dSLionel Sambuc };
11*0a6a1f1dSLionel Sambuc template <int p>
12*0a6a1f1dSLionel Sambuc class B {
get_p()13*0a6a1f1dSLionel Sambuc   char const *get_p() { return p; }
14*0a6a1f1dSLionel Sambuc };
15*0a6a1f1dSLionel Sambuc 
16