CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
# REQUIRES: system-darwin
|
|
|
|
# Tests whether the expression evaluator can handle the `NS_ENUM`/`NS_OPTIONS`
|
|
# typedefs from Objective-C `CoreFoundation`.
|
|
# Here `module.h` mimicks the `NS_OPTIONS` typedef from `CoreFoundation`.
|
|
#
|
|
# The `ClangModulesDeclVendor` currently compiles modules as
|
|
# C++, so the `MyInt` Clang decl in the module will be a `TypedefType`,
|
|
# while the DWARF AST parser will produce an `EnumType` (since that's what
|
|
# the debug-info says). When the `ASTImporter` imports these decls into the
|
|
# scratch AST, it will fail to re-use one or the other decl because they
|
|
# aren't structurally equivalent (one is a typedef, the other an enum),
|
|
# so we end up with two conflicting `MyInt` declarations in the scratch AST
|
|
# and the expression fails to run due to ambiguity in name lookup.
|
|
|
|
# RUN: split-file %s %t
|
|
# RUN: %clang_host -g %t/main.m -fmodules -fcxx-modules -o %t.out
|
|
# RUN: %lldb -x -b -s %t/commands.input %t.out -o exit 2>&1 \
|
|
# RUN: | FileCheck %s
|
|
|
|
#--- main.m
|
|
|
|
#import "module.h"
|
|
|
|
int main() {
|
|
MyInt i;
|
|
return i;
|
|
}
|
|
|
|
#--- module.h
|
|
|
|
#if (__cplusplus)
|
|
typedef int MyInt;
|
|
enum : MyInt { CASE };
|
|
#else
|
|
typedef enum MyInt : int MyInt;
|
|
enum MyInt : int { CASE };
|
|
#endif
|
|
|
|
#--- module.modulemap
|
|
module Int {
|
|
header "module.h"
|
|
}
|
|
|
|
#--- commands.input
|
|
|
|
break set -n main
|
|
run
|
|
expression -l objective-c -- (MyInt)5
|
|
|
|
# CHECK: error: reference to 'MyInt' is ambiguous
|
|
# CHECK: error: reference to 'MyInt' is ambiguous
|
|
# CHECK: note: note: candidate found by name lookup is 'MyInt'
|
|
# CHECK: note: note: candidate found by name lookup is 'MyInt'
|