xref: /llvm-project/clang/test/SemaCXX/indirect-goto.cpp (revision c6e68daac0fa6e77a89f3ca72f266a528503dd1c)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 
4 namespace test1 {
5   // Make sure this doesn't crash.
6   struct A { ~A(); };
a()7   void a() { goto *(A(), &&L); L: return; }
8 }
9