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
This commit is contained in:
Saleem Abdulrasool 2013-11-30 21:17:12 +00:00
parent 42daeae9bd
commit 73196baef4
1 changed files with 2 additions and 0 deletions

View File

@ -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 {