brintos

brintos / llvm-project-archived public Read only

0
0
Text · 422 B · 4a48197 Raw
11 lines · c
1// Test this without pch.2// RUN: not %clang_cc1 -include %S/pragma-weak.h %s -verify -emit-llvm -o - | FileCheck %s3 4// Test with pch.5// RUN: %clang_cc1 -x c-header -emit-pch -o %t %S/pragma-weak.h6// RUN: not %clang_cc1 -include-pch %t %s -verify -emit-llvm -o - | FileCheck %s7 8// CHECK: @weakvar = weak {{(dso_local )?}}global i32 09int weakvar;10// expected-warning {{weak identifier 'undeclaredvar' never declared}}11