summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/c-linkage.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-02-14 03:31:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-02-14 03:31:26 +0000
commit46d2b6bacfc3208376668c41b7907468bf7df0ff (patch)
tree1378eea8956dd3b06a44e6430a3028f18fb921ca /clang/test/CodeGenCXX/c-linkage.cpp
parentc5d33d83597329bd3fba2f274723ae2dbd9e20a7 (diff)
downloadbcm5719-llvm-46d2b6bacfc3208376668c41b7907468bf7df0ff.tar.gz
bcm5719-llvm-46d2b6bacfc3208376668c41b7907468bf7df0ff.zip
Partially revert r175117 so that we don't break assumptions about how
static functions in extern "C" contexts are mangled. Should fix the bootstrap. llvm-svn: 175132
Diffstat (limited to 'clang/test/CodeGenCXX/c-linkage.cpp')
-rw-r--r--clang/test/CodeGenCXX/c-linkage.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/test/CodeGenCXX/c-linkage.cpp b/clang/test/CodeGenCXX/c-linkage.cpp
index a0a496d09e7..c31ad438602 100644
--- a/clang/test/CodeGenCXX/c-linkage.cpp
+++ b/clang/test/CodeGenCXX/c-linkage.cpp
@@ -15,12 +15,10 @@ extern "C" {
extern "C" {
static void test2_f() {
}
- // CHECK: define internal void @_Z7test2_fv
- static void test2_f(int x) {
- }
- // CHECK: define internal void @_Z7test2_fi
+ // This is not required by the standard, but users assume they know
+ // the mangling of static functions in extern "C" contexts.
+ // CHECK: define internal void @test2_f(
void test2_use() {
test2_f();
- test2_f(42);
}
}
OpenPOWER on IntegriCloud