Sign in
llvm
/
llvm-project
/
refs/heads/users/mizvekov/clang-fix-lambda-context
/
.
/
clang
/
test
/
CXX
/
basic
/
basic.def
/
p4.cpp
blob: c3919156bbbbfd54b93f3910f774d4a86258b024 [
file
] [
log
] [
blame
] [
edit
]
// RUN: %clang_cc1 -std=c++1z -verify %s
inline
int
f
();
// expected-warning {{inline function 'f' is not defined}}
extern
inline
int
n
;
// expected-error {{inline variable 'n' is not defined}}
int
use
=
f
()
+
n
;
// expected-note 2{{used here}}