summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-10-17 18:13:21 +0000
committerHans Wennborg <hans@hanshq.net>2014-10-17 18:13:21 +0000
commit0b603cc4e994f2b79a72f74937f8dda4d591c61f (patch)
tree5e4ddc84c492c0bdbded52d92371f17a855f1f45
parent933c38df40ed2652aefd9959d088be60251c57df (diff)
downloadbcm5719-llvm-0b603cc4e994f2b79a72f74937f8dda4d591c61f.tar.gz
bcm5719-llvm-0b603cc4e994f2b79a72f74937f8dda4d591c61f.zip
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
-rw-r--r--clang/test/CodeGenCXX/sections.cpp (renamed from clang/test/CodeGen/sections.c)7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/test/CodeGen/sections.c b/clang/test/CodeGenCXX/sections.cpp
index faf34cc1748..ba2c1255f7a 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"
OpenPOWER on IntegriCloud