blob: 6394a42bb4fdef013f71536a2977d0e068fd5629 [file] [log] [blame]
Reid Spencerdcb925e2007-04-15 20:08:37 +00001// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call i32 asm}
Chris Lattnere6a2c4b2007-04-11 22:36:10 +00002
Chris Lattnere1d89552007-04-21 03:35:28 +00003union U { int x; float p; };
Chris Lattnere6a2c4b2007-04-11 22:36:10 +00004void foo() {
5 union U bar;
6 __asm__ volatile("foo %0\n" : "=r"(bar));
7}