>> diff --git a/gcc/testsuite/gcc.target/bpf/diag-alloca-1.c
>> b/gcc/testsuite/gcc.target/bpf/diag-alloca-1.c
>> index 0406f2c3595..e549cab84ca 100644
>> --- a/gcc/testsuite/gcc.target/bpf/diag-alloca-1.c
>> +++ b/gcc/testsuite/gcc.target/bpf/diag-alloca-1.c
>> @@ -3,7 +3,8 @@
>> int
>> foo (int x)
>> {
>> - int *p = __builtin_alloca (x); /* { dg-error "support" } */
>> + int *p = __builtin_alloca (x);
>> + /* { dg-message {sorry, unimplemented: dynamic stack allocation not
>> supported} {} { target *-*-* } .-1 } */
>>
>> return p[2];
>> }
>
> I am bit suprised that works. Doesn't dg-message trigger a location
> (line) check like dg-error and dg-warning do?
Ok the .-1 Nice :)