2024-05-26 10:50:45 +02:00

14 lines
358 B
Plaintext

// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=expected,both %s
// RUN: %clang_cc1 -verify=ref,both %s
@interface A {
int a;
static_assert(a, ""); // both-error {{static assertion expression is not an integral constant expression}}
}
@end
@interface NSString
@end
constexpr NSString *t0 = @"abc";
constexpr NSString *t1 = @("abc");