Hi nlewycky,

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.

http://llvm-reviews.chandlerc.com/D2048

Files:
  test/Parser/cxx0x-attributes.cpp

Index: test/Parser/cxx0x-attributes.cpp
===================================================================
--- test/Parser/cxx0x-attributes.cpp
+++ test/Parser/cxx0x-attributes.cpp
@@ -309,8 +309,10 @@
   // 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 {
Index: test/Parser/cxx0x-attributes.cpp
===================================================================
--- test/Parser/cxx0x-attributes.cpp
+++ test/Parser/cxx0x-attributes.cpp
@@ -309,8 +309,10 @@
   // 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 {
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to