]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/auto-init-uninit-17.c
RISC-V: testsuite: Remove deprecated compatibility headers
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / auto-init-uninit-17.c
CommitLineData
a25e0b5e 1/* { dg-do compile } */
2/* { dg-options "-O -Wuninitialized -ftrivial-auto-var-init=zero" } */
3
4typedef _Complex float C;
5C foo(int cond)
6{
7 C f;
8 __imag__ f = 0;
9 if (cond)
10 {
11 __real__ f = 1;
12 return f;
13 }
14 return f; /* { dg-warning "may be used" "unconditional" } */
15}