brintos

brintos / llvm-project-archived public Read only

0
0
Text · 573 B · 2d71f0b Raw
22 lines · c
1// RUN: %clang_cc1 -emit-llvm -triple x86_64 %s -o - | FileCheck %s --check-prefixes=CHECK,CUSED2// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin %s -o - | FileCheck %s --check-prefixes=CHECK,USED3 4// USED:       @llvm.used =5// CUSED:      @llvm.compiler.used =6// CHECK-SAME:    @f07// CHECK-SAME:    @f1.l08// CHECK-SAME:    @g09// CHECK-SAME:    @a010 11int g0 __attribute__((used));12 13static void __attribute__((used)) f0(void) {14}15 16void f1(void) { 17  static int l0 __attribute__((used)) = 5225; 18}19 20__attribute__((used)) int a0;21void pr27535(void) { (void)a0; }22