[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / clang / test / CodeGen / 2005-02-27-MarkGlobalConstant.c
blob9028a5abf9e675db535d433f7a4211f713797f34
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2 // PR10414
4 // The synthetic global made by the CFE for big initializer should be marked
5 // constant.
7 void bar(char *);
8 void foo(void) {
9 // CHECK: private unnamed_addr constant
10 char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
11 bar(Blah);