diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/guality')
-rw-r--r-- | gcc/testsuite/c-c++-common/guality/pr43141.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/guality/pr43141.c b/gcc/testsuite/c-c++-common/guality/pr43141.c new file mode 100644 index 000000000..e6fe79a0e --- /dev/null +++ b/gcc/testsuite/c-c++-common/guality/pr43141.c @@ -0,0 +1,16 @@ +/* { dg-do run } */ +/* { dg-options "-g" } */ + +int i; +static int f(int) __attribute ((noinline)); +static int f(int x) +{ + return i; +} + +int main() +{ + return f(42); +} + +/* { dg-final { gdb-test 8 "sizeof (x)" "sizeof (int)" } } */ |