summaryrefslogtreecommitdiff
path: root/test/SemaObjC/crash-on-objc-bool-literal.m
blob: 47e1ce284bb8cea41f58c6080229fc6fb99e2d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1  -fsyntax-only -verify %s
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s
// rdar://12456743

typedef signed char BOOL;

EXPORT BOOL FUNC(BOOL enabled); // expected-error {{unknown type name 'EXPORT'}} // expected-error {{expected ';' after top level declarator}}

static inline BOOL MFIsPrivateVersion(void) {
 return __objc_yes;
}