Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGenObjC/nontrivial-c-struct-func-name-collision.m @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -triple arm64-apple-ios11 -fobjc-arc -fblocks -fobjc-runtime=ios-11.0 -emit-llvm -verify -o - %s |
2 | |
3 typedef struct { // expected-error {{special function __default_constructor_8_s8 for non-trivial C struct has incorrect type}} | |
4 int i; | |
5 id f1; | |
6 } StrongSmall; | |
7 | |
8 int __default_constructor_8_s8(double a) { | |
9 return 0; | |
10 } | |
11 | |
12 void testIncorrectFunctionType(void) { | |
13 StrongSmall x; | |
14 } |