PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr64744-2.c
blobd33ea7bd5fede443ab836100d1ab4ed6b963deaf
1 /* { dg-do compile } */
2 /* { dg-require-effective-target naked_functions } */
3 /* { dg-options "-O0" } */
5 struct s {
6 char a;
7 int b;
8 };
10 __attribute__((naked))
11 void foo () {
12 struct s x = {}; /* { dg-error "cannot allocate stack for variable" } */