llvm/clang/test/Preprocessor/directive-invalid.c

// RUN: %clang_cc1 -E -verify %s

#define r_paren )
#if defined( x r_paren  // expected-error {{missing ')' after 'defined'}} \
                        // expected-note {{to match this '('}}
#endif