[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / PR20110.cpp
blobe540a738b87b62f7cb1e8fb8a9f08b8b77676e48
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 // expected-no-diagnostics
5 // FIXME: These templates should trigger errors in C++11 mode.
7 template <char const *p>
8 class A {
9 char const *get_p() { return *p; }
11 template <int p>
12 class B {
13 char const *get_p() { return p; }