blob: b8a703487aa80ee4c0441cfee9c4fb9ef85d1569 [file] [log] [blame]
John McCall5fb5df92012-06-20 06:18:46 +00001// RUN: %clang_cc1 %s -emit-llvm -o %t -triple i386-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5
Daniel Dunbar8b576972009-11-08 01:45:36 +00002// RUN: grep "llvm.used" %t | count 1
John McCall5fb5df92012-06-20 06:18:46 +00003// RUN: %clang_cc1 %s -emit-llvm -o %t -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5
Fariborz Jahanian248c7192009-06-23 21:47:46 +00004// RUN: grep "llvm.used" %t | count 1
5
6
7__attribute__((used)) static int XXXXXX __attribute__ ((section ("__DATA,__Xinterpose"))) ;
8__attribute__((used)) static int YYYY __attribute__ ((section ("__DATA,__Xinterpose"))) ;
9