]> granicus.if.org Git - clang/commitdiff
Move test/CodeGen/sections.c to CodeGenCXX/sections.cpp
authorHans Wennborg <hans@hanshq.net>
Fri, 17 Oct 2014 18:13:21 +0000 (18:13 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 17 Oct 2014 18:13:21 +0000 (18:13 +0000)
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/CodeGenCXX/sections.cpp [moved from test/CodeGen/sections.c with 95% similarity]

similarity index 95%
rename from test/CodeGen/sections.c
rename to test/CodeGenCXX/sections.cpp
index faf34cc1748fc0ab029ece5515b7eda423a789a4..ba2c1255f7a0561c44377b98437e3ab5f8bd537d 100644 (file)
@@ -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"