diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-10 22:14:52 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-10 22:14:52 +0000 |
commit | 8c920c9220941ec79aa9909fc32c805579d0ee71 (patch) | |
tree | 77ce9faf44432b23d60c2890a8295e827ce57b9f /clang/test/CodeGen/function-attributes.c | |
parent | d959d753bc84c298aa9982752fc3335766b30b19 (diff) | |
download | bcm5719-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.c | 4 |
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 |