brintos

brintos / llvm-project-archived public Read only

0
0
Text · 333 B · e540a73 Raw
16 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s3// expected-no-diagnostics4 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 16