From 355e8c8de83ab6633bfd42f44e16f8a6209b46f1 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Fri, 17 Oct 2014 18:13:21 +0000 Subject: [PATCH] Move test/CodeGen/sections.c to CodeGenCXX/sections.cpp The test was running with -xc++. Seems it wants to be a C++ file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220069 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/{CodeGen/sections.c => CodeGenCXX/sections.cpp} | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename test/{CodeGen/sections.c => CodeGenCXX/sections.cpp} (95%) diff --git a/test/CodeGen/sections.c b/test/CodeGenCXX/sections.cpp similarity index 95% rename from test/CodeGen/sections.c rename to test/CodeGenCXX/sections.cpp index faf34cc174..ba2c1255f7 100644 --- a/test/CodeGen/sections.c +++ b/test/CodeGenCXX/sections.cpp @@ -1,8 +1,7 @@ -// RUN: %clang_cc1 -emit-llvm -triple i686-pc-win32 -fms-extensions -xc++ -o - < %s | FileCheck %s +// RUN: %clang_cc1 -emit-llvm -triple i686-pc-win32 -fms-extensions -o - %s | FileCheck %s -#ifdef __cplusplus extern "C" { -#endif + #pragma const_seg(".my_const") #pragma bss_seg(".my_bss") int D = 1; @@ -39,9 +38,7 @@ __declspec(allocate("read_flag_section")) int unreferenced = 0; extern __declspec(allocate("read_flag_section")) int referenced = 42; int *user() { return &referenced; } -#ifdef __cplusplus } -#endif //CHECK: @D = global i32 1 //CHECK: @a = global i32 1, section ".data" -- 2.50.1