Eli Friedman | 0246376 | 2010-07-27 20:51:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Eli Friedman | 0246376 | 2010-07-27 20:51:02 +0000 | [diff] [blame] | 3 | |
4 | // Check that this doesn't crash. | ||||
5 | struct A { | ||||
6 | enum {LABEL}; | ||||
7 | }; | ||||
8 | int f() { | ||||
9 | return A().A::LABEL; | ||||
10 | } | ||||
11 |