mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-28 12:01:34 +00:00
Friend declarations that specify a default argument must be a definition and the only declaration in the translation unit. llvm-svn: 184889
10 lines
131 B
C++
10 lines
131 B
C++
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
|
|
|
|
// PR447
|
|
|
|
namespace nm {
|
|
struct str {
|
|
friend void foo(int arg = 0) {};
|
|
};
|
|
}
|