diff options
author | Duncan Sands <baldrick@free.fr> | 2009-07-15 12:09:18 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-07-15 12:09:18 +0000 |
commit | c3493cca4c3b4968e6a27a8eaa9031dcffb2073a (patch) | |
tree | 5c5b40e80ff779a3720231f19283128afc3a0fa8 | |
parent | 56b1d5d9ded4c3a62273b89319c463bc716b5547 (diff) | |
download | external_llvm-c3493cca4c3b4968e6a27a8eaa9031dcffb2073a.zip external_llvm-c3493cca4c3b4968e6a27a8eaa9031dcffb2073a.tar.gz external_llvm-c3493cca4c3b4968e6a27a8eaa9031dcffb2073a.tar.bz2 |
String constants are now output with private linkage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75777 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/FrontendC/2005-02-27-MarkGlobalConstant.c | 2 | ||||
-rw-r--r-- | test/FrontendC/2007-02-16-WritableStrings.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/FrontendC/2005-02-27-MarkGlobalConstant.c b/test/FrontendC/2005-02-27-MarkGlobalConstant.c index 4d24d0c..b9fbbb6 100644 --- a/test/FrontendC/2005-02-27-MarkGlobalConstant.c +++ b/test/FrontendC/2005-02-27-MarkGlobalConstant.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc -xc %s -S -o - | grep {internal constant } +// RUN: %llvmgcc -xc %s -S -o - | grep {private constant } // The synthetic global made by the CFE for big initializer should be marked // constant. diff --git a/test/FrontendC/2007-02-16-WritableStrings.c b/test/FrontendC/2007-02-16-WritableStrings.c index d11fa08..811e330 100644 --- a/test/FrontendC/2007-02-16-WritableStrings.c +++ b/test/FrontendC/2007-02-16-WritableStrings.c @@ -1,8 +1,7 @@ // Test the -fwritable-strings option. // RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | \ -// RUN: grep {internal global} -// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {internal constant} +// RUN: grep {private global} +// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {private constant} char *X = "foo"; - |