minix/external/bsd/llvm/dist/clang/test/SemaCXX/indirect-goto.cpp

9 lines
193 B
C++
Raw Normal View History

// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
namespace test1 {
// Make sure this doesn't crash.
struct A { ~A(); };
void a() { goto *(A(), &&L); L: return; }
}