brintos

brintos / llvm-project-archived public Read only

0
0
Text · 257 B · ebcce77 Raw
15 lines · cpp
1// RUN: %clang_cc1 %s -emit-llvm -o /dev/null2 3// This is PR4214 5struct Strongbad {6    Strongbad(const char *str );7    ~Strongbad();8    operator const char *() const;9};10 11void TheCheat () {12  Strongbad foo(0);13  Strongbad dirs[] = { Strongbad(0) + 1};14}15