blob: 81ec14b2882634e6da20155c3a3e9f637e0623b9 [file] [log] [blame]
Bob Wilsona825a632010-08-12 17:31:41 +00001// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
2// 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}