blob: dcd507d819536129b34588de8194d7ae582d93df [file] [log] [blame]
Rafael Espindolaa3f55b02013-09-04 04:12:25 +00001// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
Eric Christopher3883e662011-07-26 22:17:02 +00002// Radar 8288710: A small aggregate can be passed as an integer. Make sure
3// we don't get an error with "input constraint with a matching output
4// constraint of incompatible type!"
5
6struct wrapper {
7 int i;
8};
9
10// CHECK: xyz
11int test(int i) {
12 struct wrapper w;
13 w.i = i;
14 __asm__("xyz" : "=r" (w) : "0" (w));
15 return w.i;
16}