Revision 9d2cca71cf54ddfebda26e247d82ae7b71d9e03c authored by Pranav Gokhale on 30 June 2018, 18:56:21 UTC, committed by Pranav Gokhale on 30 June 2018, 18:56:21 UTC
1 parent 720b0db
Raw File
enum-packed.c
// RUN: %clang_cc1 -fsyntax-only -verify %s

// PR7477
enum __attribute__((packed)) E {
  Ea, Eb, Ec, Ed
};

void test_E(enum E e) {
  switch (e) {
  case Ea:
  case Eb:
  case Ec:
  case Ed:
    break;
  }
}
back to top