You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
358 B

// RUN: %clang_cc1 -triple x86_64-apple-macosx -fsyntax-only -verify -x objective-c++ %s -o /dev/null
// REQUIRES: asserts
struct objc_class {
unsigned long long bits;
};
typedef struct objc_class *Class;
static void f(Class c) { (void)(c->bits & RW_HAS_OVERFLOW_REFCOUNT); }
// expected-error@-1{{use of undeclared identifier 'RW_HAS_OVERFLOW_REFCOUNT}}