aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ByteCode/builtin-functions.cpp
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2025-03-04 15:04:57 +0100
committerGitHub <noreply@github.com>2025-03-04 15:04:57 +0100
commitf838a5e96cb15f3cd70b2f26db0b520004350c7e (patch)
tree042e337aa86ec2364ea262997410980ffc211fb1 /clang/test/AST/ByteCode/builtin-functions.cpp
parentb2d70e8796ab68a80567fb794079ee07bb243f6e (diff)
downloadllvm-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.cpp5
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 {