1 // RUN: %clang_cc1 -emit-llvm -triple i686-apple-darwin -mregparm 3 %s -o - | FileCheck %s 2 // PR3967 3 4 enum kobject_action { 5 KOBJ_ADD, 6 KOBJ_REMOVE, 7 KOBJ_CHANGE, 8 KOBJ_MOVE, 9 KOBJ_ONLINE, 10 KOBJ_OFFLINE, 11 KOBJ_MAX 12 }; 13 14 struct kobject; 15 16 // CHECK: i32 inreg %action 17 int kobject_uevent(struct kobject *kobj, enum kobject_action action) {} 18