// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-apple-darwin10 -emit-llvm -O3 -disable-llvm-passes -o - %s | FileCheck %s
// Test that can call `__builtin_constant_p` with instances of different
// Objective-C classes.
// rdar://problem/47499250
@class Foo;
@class Bar;
extern void ;
// CHECK-LABEL: define{{.*}} void @test(%0* noundef %foo, %1* noundef %bar)
void
// Test other Objective-C types.
// CHECK-LABEL: define{{.*}} void @test_more(i8* noundef %object, i8* noundef %klass)
void