mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04: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) {};
|
|
};
|
|
}
|