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 | 64c2e0762628eba26c100642521b6100c2515cc5 (patch) | |
tree | c55d3de42fa0805ccfdfffef953e2acdbafa7535 /test/CodeGen/function-attributes.c | |
parent | 531cc8355608295caa01f31fa4e078d77a3d6470 (diff) |
Don't set both readnone and readonly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/function-attributes.c')
-rw-r--r-- | test/CodeGen/function-attributes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/function-attributes.c b/test/CodeGen/function-attributes.c index 373eb63b70..a12111ec94 100644 --- a/test/CodeGen/function-attributes.c +++ b/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 |