clang/test/AST/Interp/objc.mm
raw| 1 | // RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=expected,both %s |
| 2 | // RUN: %clang_cc1 -verify=ref,both %s |
| 3 | |
| 4 | @interface A { |
| 5 | int a; |
| 6 | static_assert(a, ""); // both-error {{static assertion expression is not an integral constant expression}} |
| 7 | } |
| 8 | @end |
| 9 | |
| 10 | @interface NSString |
| 11 | @end |
| 12 | constexpr NSString *t0 = @"abc"; |
| 13 | constexpr NSString *t1 = @("abc"); |