From 4c6da0bab0bf569c2389666f0525ea2a06f03e8a Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool <compnerd@compnerd.org> Date: Sat, 30 Nov 2013 21:17:12 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195982 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Parser/cxx0x-attributes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Parser/cxx0x-attributes.cpp b/test/Parser/cxx0x-attributes.cpp index 43176025642..5d3b8250691 100644 --- a/test/Parser/cxx0x-attributes.cpp +++ b/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 { -- GitLab