brintos

brintos / llvm-project-archived public Read only

0
0
Text · 521 B · 02eb949 Raw
27 lines · plain
1// RUN: %clang_cc1 -Wno-objc-root-class -Wno-int-conversion -fblocks -o /dev/null -triple x86_64-- -emit-llvm %s2// REQUIRES: asserts3// Verify there is no assertion.4 5typedef unsigned long long uint64_t;6typedef enum AnEnum : uint64_t AnEnum;7enum AnEnum: uint64_t {8    AnEnumA9};10 11typedef void (^BlockType)(void);12@interface MyClass13@end14@implementation MyClass15- (void)_doStuff {16  struct {17    int identifier;18    AnEnum type;19    BlockType handler;20  } var = {21    "hello",22    AnEnumA,23    ((void *)0)24  };25}26@end27