mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 23:56:05 +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) {};
|
|
};
|
|
}
|