summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx0x-attributes.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2013-11-30 21:17:12 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2013-11-30 21:17:12 +0000
commit73196baef485d174e558e372afb62c7e15846468 (patch)
treef2a3a2008560d37d24807cc1e697cbe7410c4f72 /clang/test/Parser/cxx0x-attributes.cpp
parent42daeae9bdcc0d71560965f179fae7b206b3fc08 (diff)
downloadbcm5719-llvm-73196baef485d174e558e372afb62c7e15846468.tar.gz
bcm5719-llvm-73196baef485d174e558e372afb62c7e15846468.zip
add an additional test case for generic attributes
gcc treats [[gnu:const]], [[gnu::__const]], and [[gnu:__const__]] as all being equivalent. Add an additional test case to ensure that we do not miss the last case. llvm-svn: 195982
Diffstat (limited to 'clang/test/Parser/cxx0x-attributes.cpp')
-rw-r--r--clang/test/Parser/cxx0x-attributes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx0x-attributes.cpp b/clang/test/Parser/cxx0x-attributes.cpp
index 43176025642..5d3b8250691 100644
--- a/clang/test/Parser/cxx0x-attributes.cpp
+++ b/clang/test/Parser/cxx0x-attributes.cpp
@@ -309,8 +309,10 @@ namespace GccConst {
// GCC's tokenizer treats const and __const as the same token.
[[gnu::const]] int *f1();
[[gnu::__const]] int *f2();
+ [[gnu::__const__]] int *f3();
void f(const int *);
void g() { f(f1()); f(f2()); }
+ void h() { f(f3()); }
}
namespace GccASan {
OpenPOWER on IntegriCloud