Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
668b9e9c
Commit
668b9e9c
authored
12 years ago
by
Fariborz Jahanian
Browse files
Options
Downloads
Patches
Plain Diff
more testing of objc's dictionary literal translation.
llvm-svn: 154220
parent
31f55dce
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clang/test/Rewriter/rewrite-modern-container-literal.mm
+19
-1
19 additions, 1 deletion
clang/test/Rewriter/rewrite-modern-container-literal.mm
with
19 additions
and
1 deletion
clang/test/Rewriter/rewrite-modern-container-literal.mm
+
19
−
1
View file @
668b9e9c
...
...
@@ -3,14 +3,29 @@
// rdar://10803676
void
*
sel_registerName
(
const
char
*
);
typedef
unsigned
long
NSUInteger
;
typedef
long
NSInteger
;
typedef
signed
char
BOOL
;
@interface
NSNumber
+
(
NSNumber
*
)
numberWithChar
:(
char
)
value
;
+
(
NSNumber
*
)
numberWithUnsignedChar
:(
unsigned
char
)
value
;
+
(
NSNumber
*
)
numberWithShort
:(
short
)
value
;
+
(
NSNumber
*
)
numberWithUnsignedShort
:(
unsigned
short
)
value
;
+
(
NSNumber
*
)
numberWithInt
:(
int
)
value
;
+
(
NSNumber
*
)
numberWithUnsignedInt
:(
unsigned
int
)
value
;
+
(
NSNumber
*
)
numberWithLong
:(
long
)
value
;
+
(
NSNumber
*
)
numberWithUnsignedLong
:(
unsigned
long
)
value
;
+
(
NSNumber
*
)
numberWithLongLong
:(
long
long
)
value
;
+
(
NSNumber
*
)
numberWithUnsignedLongLong
:(
unsigned
long
long
)
value
;
+
(
NSNumber
*
)
numberWithFloat
:(
float
)
value
;
+
(
NSNumber
*
)
numberWithDouble
:(
double
)
value
;
+
(
NSNumber
*
)
numberWithBool
:(
BOOL
)
value
;
+
(
NSNumber
*
)
numberWithInteger
:(
NSInteger
)
value
;
+
(
NSNumber
*
)
numberWithUnsignedInteger
:(
NSUInteger
)
value
;
@end
@protocol
NSCopying
@end
typedef
unsigned
long
NSUInteger
;
@interface
NSDictionary
+
(
id
)
dictionaryWithObjects
:(
const
id
[])
objects
forKeys
:(
const
id
<
NSCopying
>
[])
keys
count
:(
NSUInteger
)
cnt
;
...
...
@@ -33,5 +48,8 @@ int main() {
NSArray
*
array
=
@[
@"Hello"
,
NSUserName
(),
[
NSDate
date
],
[
NSNumber
numberWithInt
:
42
]];
NSDictionary
*
dictionary
=
@{
@"name"
:
NSUserName
(),
@"date"
:
[
NSDate
date
],
@"process"
:
@"processInfo"
};
NSDictionary
*
dict
=
@{
@"name"
:
@666
,
@"man"
:
@
__objc_yes
,
@"date"
:
@1.3
};
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment