summaryrefslogtreecommitdiff
path: root/test/FrontendC++/2004-11-27-ExceptionCleanupAssertion.cpp
blob: f3d225e81a603289c625ccdf74d3e947f47e0d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %llvmgxx %s -S -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};
}