r176074 - Update tests to do a full match against printed C++11 attributes.
Michael Han
fragmentshaders at gmail.com
Mon Feb 25 18:00:13 PST 2013
Author: hanm
Date: Mon Feb 25 20:00:13 2013
New Revision: 176074
URL: http://llvm.org/viewvc/llvm-project?rev=176074&view=rev
Log:
Update tests to do a full match against printed C++11 attributes.
Modified:
cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp
Modified: cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp?rev=176074&r1=176073&r2=176074&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp Mon Feb 25 20:00:13 2013
@@ -7,13 +7,13 @@ int x __attribute__((aligned(4)));
// CHECK: int y __declspec(align(4));
__declspec(align(4)) int y;
-// CHECK: gnu::aligned(4)]];
+// CHECK: int z {{\[}}[gnu::aligned(4)]];
int z [[gnu::aligned(4)]];
// CHECK: __attribute__((deprecated("warning")));
int a __attribute__((deprecated("warning")));
-// CHECK: gnu::deprecated("warning")]];
+// CHECK: int b {{\[}}[gnu::deprecated("warning")]];
int b [[gnu::deprecated("warning")]];
// CHECK: int cxx11_alignas alignas(4);
@@ -31,24 +31,24 @@ void bar() __attribute__((__const));
// CHECK: int f1() __attribute__((warn_unused_result));
int f1() __attribute__((warn_unused_result));
-// CHECK: clang::warn_unused_result]];
+// CHECK: {{\[}}[clang::warn_unused_result]];
int f2 [[clang::warn_unused_result]] ();
-// CHECK: gnu::warn_unused_result]];
+// CHECK: {{\[}}[gnu::warn_unused_result]];
int f3 [[gnu::warn_unused_result]] ();
// FIXME: ast-print need to print C++11
// attribute after function declare-id.
-// CHECK: noreturn]];
+// CHECK: {{\[}}[noreturn]];
void f4 [[noreturn]] ();
-// CHECK: std::noreturn]];
+// CHECK: {{\[}}[std::noreturn]];
void f5 [[std::noreturn]] ();
// CHECK: __attribute__((gnu_inline));
inline void f6() __attribute__((gnu_inline));
-// CHECK: gnu::gnu_inline]];
+// CHECK: {{\[}}[gnu::gnu_inline]];
inline void f7 [[gnu::gnu_inline]] ();
// arguments printing
More information about the cfe-commits
mailing list