mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 07:56:06 +00:00

2004-03-08-ReinterpretCastCopy.cpp 2004-03-09-UnmangledBuiltinMethods.cpp 2004-03-15-CleanupsAndGotos.cpp 2004-06-08-LateTemplateInstantiation.cpp 2004-09-27-CompilerCrash.cpp 2004-09-27-DidntEmitTemplate.cpp 2004-11-27-ExceptionCleanupAssertion.cpp 2004-11-27-FriendDefaultArgCrash.cpp 2005-01-03-StaticInitializers.cpp from llvm/test/FrontendC++. llvm-svn: 138157
15 lines
257 B
C++
15 lines
257 B
C++
// RUN: %clang_cc1 %s -emit-llvm -o /dev/null
|
|
|
|
// This is PR421
|
|
|
|
struct Strongbad {
|
|
Strongbad(const char *str );
|
|
~Strongbad();
|
|
operator const char *() const;
|
|
};
|
|
|
|
void TheCheat () {
|
|
Strongbad foo(0);
|
|
Strongbad dirs[] = { Strongbad(0) + 1};
|
|
}
|