annotate clang/test/Parser/objcxx11-initialized-temps.mm @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
anatofuz
parents:
diff changeset
2 // expected-no-diagnostics
anatofuz
parents:
diff changeset
3 // rdar://12788429
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 struct CGPoint {
anatofuz
parents:
diff changeset
6 double x;
anatofuz
parents:
diff changeset
7 double y;
anatofuz
parents:
diff changeset
8 };
anatofuz
parents:
diff changeset
9 typedef struct CGPoint CGPoint;
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 struct CGSize {
anatofuz
parents:
diff changeset
12 double width;
anatofuz
parents:
diff changeset
13 double height;
anatofuz
parents:
diff changeset
14 };
anatofuz
parents:
diff changeset
15 typedef struct CGSize CGSize;
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 struct CGRect {
anatofuz
parents:
diff changeset
18 CGPoint origin;
anatofuz
parents:
diff changeset
19 CGSize size;
anatofuz
parents:
diff changeset
20 };
anatofuz
parents:
diff changeset
21 typedef struct CGRect CGRect;
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 typedef CGRect NSRect;
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 void HappySetFrame(NSRect frame) {}
anatofuz
parents:
diff changeset
26
anatofuz
parents:
diff changeset
27 __attribute__((objc_root_class))
anatofuz
parents:
diff changeset
28 @interface NSObject @end
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 @implementation NSObject
anatofuz
parents:
diff changeset
31 - (void) sadSetFrame: (NSRect)frame {}
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 - (void) nothing
anatofuz
parents:
diff changeset
34 {
anatofuz
parents:
diff changeset
35 HappySetFrame({{0,0}, {13,14}});
anatofuz
parents:
diff changeset
36 [self sadSetFrame: {{0,0}, {13,14}}];
anatofuz
parents:
diff changeset
37 }
anatofuz
parents:
diff changeset
38 @end