Author: Tobias Hieta
Date: 2023-02-13T16:58:13+01:00
New Revision: b8c2ba138ef689710efaa6331a618620058057fb

URL: 
https://github.com/llvm/llvm-project/commit/b8c2ba138ef689710efaa6331a618620058057fb
DIFF: 
https://github.com/llvm/llvm-project/commit/b8c2ba138ef689710efaa6331a618620058057fb.diff

LOG: [NFC] Fix using-declspec.cpp test with non-C++17 compilers

Added: 
    

Modified: 
    clang/test/SemaCXX/using-declspec.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaCXX/using-declspec.cpp 
b/clang/test/SemaCXX/using-declspec.cpp
index a903bc93c9b44..f4cc8d3736ca4 100644
--- a/clang/test/SemaCXX/using-declspec.cpp
+++ b/clang/test/SemaCXX/using-declspec.cpp
@@ -3,7 +3,7 @@
 // This should ignore the alignment and issue a warning about
 // align not being used
 auto func() -> __declspec(align(16)) int; // expected-warning{{attribute 
ignored when parsing type}}
-static_assert(alignof(decltype(func())) == alignof(int));
+static_assert(alignof(decltype(func())) == alignof(int), "error");
 
 // The following should NOT assert since alignment should
 // follow the type
@@ -16,4 +16,5 @@ int i = (__declspec(align(16))int)12; // 
expected-warning{{attribute ignored whe
 
 // But there is a declaration here!
 typedef __declspec(align(16)) int Foo;
-static_assert(alignof(Foo) == 16);
+static_assert(alignof(Foo) == 16, "error");
+


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to