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

struct V { short X, Y; };
int bar() {
  struct V bar;
  __asm__ volatile("foo %0\n" :: "r"(bar));
  return bar.X;
}