]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/2005-02-27-MarkGlobalConstant.c
Vendor import of clang release_30 branch r142614:
[FreeBSD/FreeBSD.git] / test / CodeGen / 2005-02-27-MarkGlobalConstant.c
1 // RUN: %clang_cc1  %s -emit-llvm -o - | FileCheck %s
2 // PR10414
3
4 // The synthetic global made by the CFE for big initializer should be marked
5 // constant.
6
7 void bar();
8 void foo() {
9   // CHECK: private unnamed_addr constant
10   char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
11   bar(Blah);
12 }