aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-04-11-InlineAsmUnion.c
blob: 014470102d32f59ed215b934aab2e3fcb08e1cbd (plain)
1
2
3
4
5
6
7
// RUN: %llvmgcc %s -S -o - | llc

union U { int x; float p; };
void foo() {
  union U bar;
  __asm__ volatile("foo %0\n" : "=r"(bar));
}