1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
42 lines
609 B
C++
42 lines
609 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
namespace PR6382 {
|
|
int foo()
|
|
{
|
|
goto error;
|
|
{
|
|
struct BitPacker {
|
|
BitPacker() {}
|
|
};
|
|
BitPacker packer;
|
|
}
|
|
|
|
error:
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
namespace PR6383 {
|
|
void test (bool gross)
|
|
{
|
|
struct compare_and_set
|
|
{
|
|
void operator() (const bool inner, const bool gross = false)
|
|
{
|
|
// the code
|
|
}
|
|
} compare_and_set2;
|
|
|
|
compare_and_set2 (false, gross);
|
|
}
|
|
}
|
|
|
|
namespace Templates {
|
|
template<int Value>
|
|
void f() {
|
|
struct Inner {
|
|
static int getValue() { return Value; }
|
|
};
|
|
}
|
|
}
|