summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/linkage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/linkage.cpp')
-rw-r--r--clang/test/SemaCXX/linkage.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/test/SemaCXX/linkage.cpp b/clang/test/SemaCXX/linkage.cpp
index c373f498470..6b73d596e01 100644
--- a/clang/test/SemaCXX/linkage.cpp
+++ b/clang/test/SemaCXX/linkage.cpp
@@ -76,15 +76,13 @@ extern "C" {
struct X {
int f() {
extern int g();
- // FIXME: We don't compute the correct linkage for this variable
- // at the moment
- // extern int a;
+ extern int a;
// Test both for mangling in the code generation and warnings from use
// of internal, undefined names via -Werror.
// CHECK: call i32 @g(
- // FIXME: load i32* @a,
- return g();// + a;
+ // CHECK: load i32* @a,
+ return g() + a;
}
};
}
OpenPOWER on IntegriCloud