llvm-project/clang/test/CodeGenCXX/scoped-enums.cpp
Richard Smith 9ca5c42582 Update all tests other than Driver/std.cpp to use -std=c++11 rather than
-std=c++0x. Patch by Ahmed Charles!

llvm-svn: 141900
2011-10-13 22:29:44 +00:00

10 lines
145 B
C++

// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s
// PR9923
enum class Color { red, blue, green };
void f(Color);
void g() {
f(Color::red);
}