mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-08 09:03:18 +00:00
8b7d403684
Objective-C. The @encode'ing of such an enumeration type is the same as its underlying type. <rdar://problem/5276348>. llvm-svn: 139297
11 lines
323 B
Objective-C
11 lines
323 B
Objective-C
// RUN: %clang_cc1 -emit-llvm -o - %s -O2 | grep "ret i32 1"
|
|
typedef long Integer;
|
|
typedef enum : Integer { Red, Green, Blue} Color;
|
|
typedef enum { Cyan, Magenta, Yellow, Key } PrintColor;
|
|
|
|
int a() {
|
|
return @encode(int) == @encode(int) &&
|
|
@encode(Color) == @encode(long) &&
|
|
@encode(PrintColor) == @encode(int);
|
|
}
|