• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
2 // RUN: grep '@llvm.used = .*@g0' %t
3 // RUN: grep '@llvm.used = .*@f0' %t
4 // RUN: grep '@llvm.used = .*@f1.l0' %t
5 
6 
7 int g0 __attribute__((used));
8 
f0(void)9 static void __attribute__((used)) f0(void) {
10 }
11 
f1()12 void f1() {
13   static int l0 __attribute__((used)) = 5225;
14 }
15