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