llvm-project/clang/test/CodeGenCXX/2004-11-27-FriendDefaultArgCrash.cpp
David Majnemer 502b0ed264 Implement DR136
Friend declarations that specify a default argument must be a definition
and the only declaration in the translation unit.

llvm-svn: 184889
2013-06-25 23:09:30 +00:00

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) {};
};
}