forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
538ffb3
commit bb97b44
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
lldb/test/Shell/SymbolFile/DWARF/objc-gmodules-class-extension.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# REQUIRES: system-darwin | ||
|
||
# Test that TODO... | ||
# | ||
# RUN: split-file %s %t | ||
# RUN: %clangxx_host %t/lib.m -c -g -gmodules -fmodules -o %t/lib.o | ||
# RUN: %clangxx_host %t/main.m -g -gmodules -fmodules %t/lib.o -o %t/a.out -framework Foundation | ||
# | ||
# RUN: %lldb %t/a.out -o "breakpoint set -f lib.m -l 6" -o exit | FileCheck %s | ||
|
||
# CHECK: (lldb) breakpoint set -f lib.m -l 6 | ||
# CHECK: Breakpoint 1: where = a.out`-[NSObject(Foo) func] | ||
|
||
#--- main.m | ||
int main() { | ||
return 0; | ||
} | ||
|
||
#--- lib.m | ||
#import <Foundation/Foundation.h> | ||
|
||
@implementation NSObject (Foo) | ||
- (NSError *)func { | ||
NSLog(@"Hello, World!"); | ||
return 0; | ||
} | ||
@end | ||
|
||
NSObject * func() { | ||
return 0; | ||
} |