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

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