opnsense-src/test/CodeGenObjC/deadcode_strip_used_var.m

10 lines
402 B
Mathematica
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 %s -emit-llvm -o %t -triple i386-apple-darwin10
2009-11-18 09:59:57 -05:00
// RUN: grep "llvm.used" %t | count 1
2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 %s -emit-llvm -o %t -triple x86_64-apple-darwin10
2009-06-27 06:45:02 -04:00
// RUN: grep "llvm.used" %t | count 1
__attribute__((used)) static int XXXXXX __attribute__ ((section ("__DATA,__Xinterpose"))) ;
__attribute__((used)) static int YYYY __attribute__ ((section ("__DATA,__Xinterpose"))) ;