llvm-for-llvmta/tools/clang/test/SemaCXX/indirect-goto.cpp

9 lines
193 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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; }
}