blob: 01e6bd4feb3316790e4de14cf6f190a7c395f690 [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +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
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +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