summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-visibility.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-05-01 20:58:29 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-05-01 20:58:29 +0000
commita01ff786ed48ebc310615caa7ad6ea6d216f0552 (patch)
treefcfce62c597f4ee067abc4ad2299d4f0377946d9 /clang/test/Sema/attr-visibility.c
parent882e14c8022b504a0e142b9d64f77810196f70f1 (diff)
downloadbcm5719-llvm-a01ff786ed48ebc310615caa7ad6ea6d216f0552.tar.gz
bcm5719-llvm-a01ff786ed48ebc310615caa7ad6ea6d216f0552.zip
Extend the error about incompatible visibility attributes in different
decls to work on function templates specializations. llvm-svn: 155943
Diffstat (limited to 'clang/test/Sema/attr-visibility.c')
-rw-r--r--clang/test/Sema/attr-visibility.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/attr-visibility.c b/clang/test/Sema/attr-visibility.c
index afeb4f1546f..499111f86cc 100644
--- a/clang/test/Sema/attr-visibility.c
+++ b/clang/test/Sema/attr-visibility.c
@@ -8,4 +8,5 @@ void test2() __attribute__((visibility("internal")));
void test3() __attribute__((visibility("protected"))); // expected-warning {{target does not support 'protected' visibility; using 'default'}}
struct __attribute__((visibility("hidden"))) test4; // expected-note {{previous attribute is here}}
+struct test4;
struct __attribute__((visibility("default"))) test4; // expected-error {{visibility does not match previous declaration}}
OpenPOWER on IntegriCloud