From 8c920c9220941ec79aa9909fc32c805579d0ee71 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 10 Apr 2009 22:14:52 +0000 Subject: Don't set both readnone and readonly. llvm-svn: 68833 --- clang/test/CodeGen/function-attributes.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test/CodeGen/function-attributes.c') 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 -- cgit v1.2.3