aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-04-13-InlineAsmUnion2.c
blob: 284654d223c04d0bf983de7a03168931a0c1ec83 (plain)
1
2
3
4
5
6
7
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call void asm}

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