cling/test/ErrorRecovery/MacroDef.h
2023-12-11 08:59:21 +01:00

17 lines
597 B
C

//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
#ifndef HEADER_FILE_PROTECTOR
#define HEADER_FILE_PROTECTOR
int f() {
return NN+1;
}
int n = f();
error_here; // expected-error {{use of undeclared identifier}}
#endif // HEADER_FILE_PROTECTOR