Author: dblaikie
Date: Tue May 1 16:29:03 2012
New Revision: 155948
URL: http://llvm.org/viewvc/llvm-project?rev=155948&view=rev
Log:
Fix test cases broken by 155936.
Modified:
cfe/trunk/test/SemaObjC/boxing-illegal-types.m
cfe/trunk/test/SemaTemplate/instantiate-objc-1.mm
Modified: cfe/trunk/test/SemaObjC/boxing-illegal-types.m
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/boxing-illegal-types.m?rev=155948&r1=155947&r2=155948&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/boxing-illegal-types.m (original)
+++ cfe/trunk/test/SemaObjC/boxing-illegal-types.m Tue May 1 16:29:03 2012
@@ -6,12 +6,12 @@
void testStruct() {
point p = { 0, 0, 0 };
- id boxed = @(p); // expected-error {{Illegal type 'point' used in a
boxed expression}}
+ id boxed = @(p); // expected-error {{illegal type 'point' used in a
boxed expression}}
}
void testPointers() {
void *null = 0;
- id boxed_null = @(null); // expected-error {{Illegal type 'void *'
used in a boxed expression}}
+ id boxed_null = @(null); // expected-error {{illegal type 'void *'
used in a boxed expression}}
int numbers[] = { 0, 1, 2 };
- id boxed_numbers = @(numbers); // expected-error {{Illegal type 'int *'
used in a boxed expression}}
+ id boxed_numbers = @(numbers); // expected-error {{illegal type 'int *'
used in a boxed expression}}
}
Modified: cfe/trunk/test/SemaTemplate/instantiate-objc-1.mm
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/instantiate-objc-1.mm?rev=155948&r1=155947&r2=155948&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/instantiate-objc-1.mm (original)
+++ cfe/trunk/test/SemaTemplate/instantiate-objc-1.mm Tue May 1 16:29:03 2012
@@ -50,8 +50,8 @@
// @() boxing expressions.
template <typename T> struct BoxingTest {
static id box(T value) {
- return @(value); // expected-error {{Illegal type 'int
*' used in a boxed expression}} \
- // expected-error {{Illegal type
'long double' used in a boxed expression}}
+ return @(value); // expected-error {{illegal type 'int
*' used in a boxed expression}} \
+ // expected-error {{illegal type
'long double' used in a boxed expression}}
}
};
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits