blob: dc2cdbfa726f866da32649ec2c6dd4c328995afd [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
Eric Christopher3883e662011-07-26 22:17:02 +00002// PR10414
3
4// The synthetic global made by the CFE for big initializer should be marked
5// constant.
6
7void bar();
8void foo() {
9 // CHECK: private unnamed_addr constant
10 char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
11 bar(Blah);
12}