1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s 2*f4a2713aSLionel Sambuc // Radar 8288710: A small aggregate can be passed as an integer. Make sure 3*f4a2713aSLionel Sambuc // we don't get an error with "input constraint with a matching output 4*f4a2713aSLionel Sambuc // constraint of incompatible type!" 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc struct wrapper { 7*f4a2713aSLionel Sambuc int i; 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc // CHECK: xyz test(int i)11*f4a2713aSLionel Sambucint test(int i) { 12*f4a2713aSLionel Sambuc struct wrapper w; 13*f4a2713aSLionel Sambuc w.i = i; 14*f4a2713aSLionel Sambuc __asm__("xyz" : "=r" (w) : "0" (w)); 15*f4a2713aSLionel Sambuc return w.i; 16*f4a2713aSLionel Sambuc } 17