llvm-project/clang/test/CodeGenCXX/enum.cpp

6 lines
141 B
C++

// RUN: %clang_cc1 -emit-llvm-only -verify %s
// expected-no-diagnostics
enum A { a } __attribute((packed));
int func(A x) { return x==a; }