blob: 284654d223c04d0bf983de7a03168931a0c1ec83 [file] [log] [blame]
Reid Spencerdcb925e2007-04-15 20:08:37 +00001// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call void asm}
Dale Johannesenf6a15eb2007-04-13 22:54:11 +00002
3union U { int x; char* p; };
4void foo() {
5 union U bar;
6 __asm__ volatile("foo %0\n" :: "r"(bar));
7}