view clang/test/SemaCXX/qualified-member-enum.cpp @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 1d019706d866
children
line wrap: on
line source

// RUN: %clang_cc1 -fsyntax-only -verify %s 
// expected-no-diagnostics

// Check that this doesn't crash.
struct A {
  enum {LABEL};
};
int f() {
  return A().A::LABEL;
}