summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/asm-8.c
blob: a3f3962eb16d897074ca94a067bbd77fbc00440d (plain)
1
2
3
4
5
6
7
8
9
/* PR inline-asm/11676 */
/* { dg-do compile } */
/* { dg-options "-O -Wall" } */

void foo(void)
{
  long x = 0;
  asm volatile ("" : "=r"(x) : "r"(x)); /* { dg-bogus "uninitialized" } */
}