diff options
Diffstat (limited to 'clang/test/SemaCXX/cxx11-attr-print.cpp')
-rw-r--r-- | clang/test/SemaCXX/cxx11-attr-print.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/cxx11-attr-print.cpp b/clang/test/SemaCXX/cxx11-attr-print.cpp index 12b41758c74..e7c00b76d03 100644 --- a/clang/test/SemaCXX/cxx11-attr-print.cpp +++ b/clang/test/SemaCXX/cxx11-attr-print.cpp @@ -37,13 +37,15 @@ void foo() __attribute__((const)); // CHECK: void bar() __attribute__((__const)); void bar() __attribute__((__const)); -// CHECK: int f1() __attribute__((warn_unused_result)); +// FIXME: It's unfortunate that the string literal prints with the below three +// cases given that the string is only exposed via the [[nodiscard]] spelling. +// 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 |