mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 21:51:19 +00:00
variable weak discardable linkage and partially-ordered initialization, and is implied for constexpr static data members.) llvm-svn: 273754
7 lines
247 B
C++
7 lines
247 B
C++
// 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}}
|