r195982 - add an additional test case for generic attributes
Saleem Abdulrasool
compnerd at compnerd.org
Sat Nov 30 13:17:13 PST 2013
Author: compnerd
Date: Sat Nov 30 15:17:12 2013
New Revision: 195982
URL: http://llvm.org/viewvc/llvm-project?rev=195982&view=rev
Log:
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.
Modified:
cfe/trunk/test/Parser/cxx0x-attributes.cpp
Modified: cfe/trunk/test/Parser/cxx0x-attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx0x-attributes.cpp?rev=195982&r1=195981&r2=195982&view=diff
==============================================================================
--- cfe/trunk/test/Parser/cxx0x-attributes.cpp (original)
+++ cfe/trunk/test/Parser/cxx0x-attributes.cpp Sat Nov 30 15:17:12 2013
@@ -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 {
More information about the cfe-commits
mailing list