brintos

brintos / llvm-project-archived public Read only

0
0
Text · 371 B · 8753bf1 Raw
17 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s2// A small aggregate can be passed as an integer. Make sure we don't get an3// error with "input constraint with a matching output constraint of4// incompatible type!" 5 6struct wrapper {7  int i;8};9 10// CHECK: xyz11int test(int i) {12  struct wrapper w;13  w.i = i;14  __asm__("xyz" : "=r" (w) : "0" (w));15  return w.i;16}17