| Index: test/NaCl/PNaClABI/abi-visibility.ll
|
| diff --git a/test/NaCl/PNaClABI/abi-visibility.ll b/test/NaCl/PNaClABI/abi-visibility.ll
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..40629ffc710bedb55a39f17416760ed59a20a0d2
|
| --- /dev/null
|
| +++ b/test/NaCl/PNaClABI/abi-visibility.ll
|
| @@ -0,0 +1,15 @@
|
| +; RUN: not pnacl-abicheck < %s | FileCheck %s
|
| +
|
| +; Disallow the visibility attributes set by
|
| +; __attribute__((visibility("hidden"))) and
|
| +; __attribute__((visibility("protected"))).
|
| +
|
| +define hidden void @visibility_hidden() {
|
| + ret void
|
| +}
|
| +; CHECK: Function visibility_hidden has disallowed visibility: hidden
|
| +
|
| +define protected void @visibility_protected() {
|
| + ret void
|
| +}
|
| +; CHECK: Function visibility_protected has disallowed visibility: protected
|
|
|