blob: 679d6da661018ae32ed0e0c959466bf31cd32e20 [file] [log] [blame]
Fariborz Jahanian4ee39812009-12-14 17:13:18 +00001// RUN: clang -cc1 %s -emit-llvm -o %t -triple i386-apple-darwin10
Daniel Dunbar8b576972009-11-08 01:45:36 +00002// RUN: grep "llvm.used" %t | count 1
Fariborz Jahanian4ee39812009-12-14 17:13:18 +00003// RUN: clang -cc1 %s -emit-llvm -o %t -triple x86_64-apple-darwin10
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