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

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