blob: e540a738b87b62f7cb1e8fb8a9f08b8b77676e48 [file] [log] [blame]
Richard Trieudadefde2014-07-02 04:39:38 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3// expected-no-diagnostics
4
5// FIXME: These templates should trigger errors in C++11 mode.
6
7template <char const *p>
8class A {
9 char const *get_p() { return *p; }
10};
11template <int p>
12class B {
13 char const *get_p() { return p; }
14};
15