YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenCXX/scoped-enums.cpp

10 lines
145 B
C++
Raw Normal View History

// 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);
}