File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8765,7 +8765,8 @@ def err_expected_callable_argument : Error<
8765
8765
def note_building_builtin_dump_struct_call : Note<
8766
8766
"in call to printing function with arguments '(%0)' while dumping struct">;
8767
8767
def err_builtin_verbose_trap_arg : Error<
8768
- "argument to __builtin_verbose_trap must be a non-empty string literal">;
8768
+ "argument to __builtin_verbose_trap must be a pointer to a non-empty constant "
8769
+ "string">;
8769
8770
8770
8771
def err_atomic_load_store_uses_lib : Error<
8771
8772
"atomic %select{load|store}0 requires runtime support that is not "
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ void f(const char * arg) {
14
14
__builtin_verbose_trap (" hello" " world" );
15
15
__builtin_verbose_trap (constMsg1);
16
16
__builtin_verbose_trap (constMsg2);
17
- __builtin_verbose_trap (" " ); // expected-error {{argument to __builtin_verbose_trap must be a non-empty string literal }}
17
+ __builtin_verbose_trap (" " ); // expected-error {{argument to __builtin_verbose_trap must be a pointer to a non-empty constant string }}
18
18
__builtin_verbose_trap (); // expected-error {{too few arguments}}
19
- __builtin_verbose_trap (0 ); // expected-error {{argument to __builtin_verbose_trap must be a non-empty string literal }}
19
+ __builtin_verbose_trap (0 ); // expected-error {{argument to __builtin_verbose_trap must be a pointer to a non-empty constant string }}
20
20
__builtin_verbose_trap (1 ); // expected-error {{cannot initialize a parameter of type 'const char *' with}}
21
- __builtin_verbose_trap (arg); // expected-error {{argument to __builtin_verbose_trap must be a non-empty string literal }}
21
+ __builtin_verbose_trap (arg); // expected-error {{argument to __builtin_verbose_trap must be a pointer to a non-empty constant string }}
22
22
__builtin_verbose_trap (str);
23
23
__builtin_verbose_trap (u8" hello" );
24
24
}
You can’t perform that action at this time.
0 commit comments