Skip to content
Snippets Groups Projects
Commit 73196bae authored by Saleem Abdulrasool's avatar Saleem Abdulrasool
Browse files

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
parent 42daeae9
No related branches found
No related tags found
No related merge requests found
...@@ -309,8 +309,10 @@ namespace GccConst { ...@@ -309,8 +309,10 @@ namespace GccConst {
// GCC's tokenizer treats const and __const as the same token. // GCC's tokenizer treats const and __const as the same token.
[[gnu::const]] int *f1(); [[gnu::const]] int *f1();
[[gnu::__const]] int *f2(); [[gnu::__const]] int *f2();
[[gnu::__const__]] int *f3();
void f(const int *); void f(const int *);
void g() { f(f1()); f(f2()); } void g() { f(f1()); f(f2()); }
void h() { f(f3()); }
} }
namespace GccASan { namespace GccASan {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment