From c3493cca4c3b4968e6a27a8eaa9031dcffb2073a Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 15 Jul 2009 12:09:18 +0000 Subject: [PATCH] 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 --- test/FrontendC/2005-02-27-MarkGlobalConstant.c | 2 +- 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 4d24d0c6731..b9fbbb6369a 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 d11fa089dba..811e3301f8d 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"; -