diff options
Diffstat (limited to 'clang/test/CodeGenCXX/2004-11-27-FriendDefaultArgCrash.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/2004-11-27-FriendDefaultArgCrash.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/2004-11-27-FriendDefaultArgCrash.cpp b/clang/test/CodeGenCXX/2004-11-27-FriendDefaultArgCrash.cpp new file mode 100644 index 0000000..3bfecd5 --- /dev/null +++ b/clang/test/CodeGenCXX/2004-11-27-FriendDefaultArgCrash.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -emit-llvm %s -o /dev/null + +// PR447 + +namespace nm { + struct str { + friend int foo(int arg = 0); + }; +} |