Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: test/NaCl/PNaClABI/abi-visibility.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/NaCl/PNaClABI/abi-varargs.ll ('k') | test/NaCl/PNaClABI/function-signatures.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « test/NaCl/PNaClABI/abi-varargs.ll ('k') | test/NaCl/PNaClABI/function-signatures.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698