[clang] ce093d5 - [clang][Intepr] Fix the build

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 7 07:48:48 PDT 2023


Author: Timm Bäder
Date: 2023-10-07T16:48:03+02:00
New Revision: ce093d59c92941cbdef7d47268fb3fd0e72dbf30

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

LOG: [clang][Intepr] Fix the build

The expected output was wrong.

Added: 
    

Modified: 
    clang/test/AST/Interp/c.c

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/Interp/c.c b/clang/test/AST/Interp/c.c
index 384912f7bcab17c..974ca72702f7dd0 100644
--- a/clang/test/AST/Interp/c.c
+++ b/clang/test/AST/Interp/c.c
@@ -14,14 +14,11 @@ _Static_assert(!!1.0, ""); // pedantic-ref-warning {{not an integer constant exp
                            // pedantic-expected-warning {{not an integer constant expression}}
 _Static_assert(!!1, "");
 
-int a = (1 == 1 ? 5 : 3); // expected-note {{declared here}} \
-                          // pedantic-expected-note {{declared here}}
+int a = (1 == 1 ? 5 : 3);
 _Static_assert(a == 5, ""); // ref-error {{not an integral constant expression}} \
                             // pedantic-ref-error {{not an integral constant expression}} \
                             // expected-error {{not an integral constant expression}} \
-                            // expected-note {{read of non-const variable}} \
-                            // pedantic-expected-error {{not an integral constant expression}} \
-                            // pedantic-expected-note {{read of non-const variable}}
+                            // pedantic-expected-error {{not an integral constant expression}}
 
 
 const int b = 3;


        


More information about the cfe-commits mailing list