summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/scoped-enums.cpp
blob: fca05098923c2f0e3faae148c74ecd8fc60ebb80 (about) (plain)
1
2
3
4
5
6
7
8
9
// 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);
}