diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2013-11-30 21:17:12 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2013-11-30 21:17:12 +0000 |
commit | 73196baef485d174e558e372afb62c7e15846468 (patch) | |
tree | f2a3a2008560d37d24807cc1e697cbe7410c4f72 /clang/test/Parser/cxx0x-attributes.cpp | |
parent | 42daeae9bdcc0d71560965f179fae7b206b3fc08 (diff) | |
download | bcm5719-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.cpp | 2 |
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 { |