From 0b603cc4e994f2b79a72f74937f8dda4d591c61f 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. llvm-svn: 220069 --- clang/test/{CodeGen/sections.c => CodeGenCXX/sections.cpp} | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename clang/test/{CodeGen/sections.c => CodeGenCXX/sections.cpp} (95%) diff --git a/clang/test/CodeGen/sections.c b/clang/test/CodeGenCXX/sections.cpp similarity index 95% rename from clang/test/CodeGen/sections.c rename to clang/test/CodeGenCXX/sections.cpp index faf34cc1748f..ba2c1255f7a0 100644 --- a/clang/test/CodeGen/sections.c +++ b/clang/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"