xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2008-12-23-AsmIntPointerTie.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 %s -emit-llvm -O1 -o -
2 // REQUIRES: LP64
3 
4 typedef long intptr_t;
test(void * b)5 int test(void *b) {
6  intptr_t a;
7  __asm__ __volatile__ ("%0 %1 " : "=r" (a): "0" (b));
8   return a;
9 }
10