summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/function-attributes.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-10 22:14:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-10 22:14:52 +0000
commit8c920c9220941ec79aa9909fc32c805579d0ee71 (patch)
tree77ce9faf44432b23d60c2890a8295e827ce57b9f /clang/test/CodeGen/function-attributes.c
parentd959d753bc84c298aa9982752fc3335766b30b19 (diff)
downloadbcm5719-llvm-8c920c9220941ec79aa9909fc32c805579d0ee71.tar.gz
bcm5719-llvm-8c920c9220941ec79aa9909fc32c805579d0ee71.zip
Don't set both readnone and readonly.
llvm-svn: 68833
Diffstat (limited to 'clang/test/CodeGen/function-attributes.c')
-rw-r--r--clang/test/CodeGen/function-attributes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/function-attributes.c b/clang/test/CodeGen/function-attributes.c
index 373eb63b700..a12111ec94a 100644
--- a/clang/test/CodeGen/function-attributes.c
+++ b/clang/test/CodeGen/function-attributes.c
@@ -43,4 +43,8 @@ int f12(int arg) {
return arg ? 0 : f10_t();
}
+// RUN: grep 'define void @f13() nounwind readnone' %t &&
+void f13(void) __attribute__((pure)) __attribute__((const));
+void f13(void){}
+
// RUN: true
OpenPOWER on IntegriCloud