diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-03-04 15:04:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-04 15:04:57 +0100 |
commit | f838a5e96cb15f3cd70b2f26db0b520004350c7e (patch) | |
tree | 042e337aa86ec2364ea262997410980ffc211fb1 /clang/test/AST/ByteCode/builtin-functions.cpp | |
parent | b2d70e8796ab68a80567fb794079ee07bb243f6e (diff) | |
download | llvm-f838a5e96cb15f3cd70b2f26db0b520004350c7e.zip llvm-f838a5e96cb15f3cd70b2f26db0b520004350c7e.tar.gz llvm-f838a5e96cb15f3cd70b2f26db0b520004350c7e.tar.bz2 |
[clang][bytecode] Fix diagnostic difference with opaque call cmps (#129702)
Try to dig out the call expression and diagnose this as an opaque call.
Diffstat (limited to 'clang/test/AST/ByteCode/builtin-functions.cpp')
-rw-r--r-- | clang/test/AST/ByteCode/builtin-functions.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/AST/ByteCode/builtin-functions.cpp b/clang/test/AST/ByteCode/builtin-functions.cpp index 0c26d40..75380f9 100644 --- a/clang/test/AST/ByteCode/builtin-functions.cpp +++ b/clang/test/AST/ByteCode/builtin-functions.cpp @@ -1008,9 +1008,8 @@ namespace shufflevector { namespace FunctionStart { void a(void) {} - static_assert(__builtin_function_start(a) == a, ""); // ref-error {{not an integral constant expression}} \ - // ref-note {{comparison against opaque constant address '&__builtin_function_start(a)'}} \ - // expected-error {{static assertion failed}} + static_assert(__builtin_function_start(a) == a, ""); // both-error {{not an integral constant expression}} \ + // both-note {{comparison against opaque constant address '&__builtin_function_start(a)'}} } namespace BuiltinInImplicitCtor { |