diff options
Diffstat (limited to 'llvm/test/CFrontend/2005-02-27-MarkGlobalConstant.c')
-rw-r--r-- | llvm/test/CFrontend/2005-02-27-MarkGlobalConstant.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2005-02-27-MarkGlobalConstant.c b/llvm/test/CFrontend/2005-02-27-MarkGlobalConstant.c new file mode 100644 index 00000000000..100c79c82bf --- /dev/null +++ b/llvm/test/CFrontend/2005-02-27-MarkGlobalConstant.c @@ -0,0 +1,10 @@ +// RUN: %llvmgcc -xc %s -S -o - | grep 'internal constant ' + +// The synthetic global made by the CFE for big initializer should be marked +// constant. + +void bar(); +void foo() { + char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd"; + bar(Blah); +} |