llvm-project/clang/test/SemaCXX/indirect-goto.cpp

9 lines
193 B
C++

// 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; }
}