aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend/2007-04-11-InlineAsmUnion.c
blob: 6394a42bb4fdef013f71536a2977d0e068fd5629 (plain)
1
2
3
4
5
6
7
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call i32 asm}

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