diff options
Diffstat (limited to 'test/CXX/basic/basic.def/p4.cpp')
-rw-r--r-- | test/CXX/basic/basic.def/p4.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CXX/basic/basic.def/p4.cpp b/test/CXX/basic/basic.def/p4.cpp new file mode 100644 index 000000000000..c3919156bbbb --- /dev/null +++ b/test/CXX/basic/basic.def/p4.cpp @@ -0,0 +1,6 @@ +// 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}} |