mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
8fbe78f6fc
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
17 lines
708 B
Objective-C
17 lines
708 B
Objective-C
// RUN: %clang_cc1 -verify -fsyntax-only -fblocks %s
|
|
|
|
@interface TestAttrMallocOnMethods {}
|
|
- (id) test1 __attribute((malloc)); // expected-warning {{functions returning a pointer type}}
|
|
- (int) test2 __attribute((malloc)); // expected-warning {{functions returning a pointer type}}
|
|
@end
|
|
|
|
id bar(void) __attribute((malloc)); // no-warning
|
|
|
|
typedef void (^bptr)(void);
|
|
bptr baz(void) __attribute((malloc)); // no-warning
|
|
|
|
__attribute((malloc)) id (*f)(); // expected-warning {{functions returning a pointer type}}
|
|
__attribute((malloc)) bptr (*g)(); // expected-warning {{functions returning a pointer type}}
|
|
__attribute((malloc)) void *(^h)(); // expected-warning {{functions returning a pointer type}}
|
|
|