summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/linkage2.cpp
diff options
context:
space:
mode:
authorIsmail Pazarbasi <ismail.pazarbasi@gmail.com>2014-03-06 21:48:45 +0000
committerIsmail Pazarbasi <ismail.pazarbasi@gmail.com>2014-03-06 21:48:45 +0000
commitbe19ae05e7dedc052d3b8314e74d6810f1ec7197 (patch)
tree6604563c9074576b71a5763adccd73ad1bce41ce /clang/test/SemaCXX/linkage2.cpp
parent02548c08f85393fac483fa66565d07ef38da9b01 (diff)
downloadbcm5719-llvm-be19ae05e7dedc052d3b8314e74d6810f1ec7197.tar.gz
bcm5719-llvm-be19ae05e7dedc052d3b8314e74d6810f1ec7197.zip
Exclude invalid old decl from mismatching linkage assertion
This patch fixes PR18964. In linkage computation, assertion fails when an old invalid declaration's linkage mismatches with the current decl's one. llvm-svn: 203168
Diffstat (limited to 'clang/test/SemaCXX/linkage2.cpp')
-rw-r--r--clang/test/SemaCXX/linkage2.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/linkage2.cpp b/clang/test/SemaCXX/linkage2.cpp
index 075f5e70c24..a7eb15f7c6b 100644
--- a/clang/test/SemaCXX/linkage2.cpp
+++ b/clang/test/SemaCXX/linkage2.cpp
@@ -213,3 +213,7 @@ namespace PR16247 {
void pr16247_bar(int) {}
void pr16247_bar(double) {}
}
+namespace PR18964 {
+ unsigned &*foo; //expected-error{{'foo' declared as a pointer to a reference of type}}
+ extern struct {} *foo; // don't assert
+}
OpenPOWER on IntegriCloud