Mercurial > hg > CbC > CbC_llvm
annotate clang/test/SemaCXX/PR20110.cpp @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // 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 | |
7 template <char const *p> | |
8 class A { | |
9 char const *get_p() { return *p; } | |
10 }; | |
11 template <int p> | |
12 class B { | |
13 char const *get_p() { return p; } | |
14 }; | |
15 |