Commit fa0a064a by Martin Liska Committed by Martin Liska

objc: update documetation and add test-case of

	* doc/extend.texi: Remove limitation of Objective C for
	__attribute__((constructor)) and __attribute__((destructor)).
	* objc/execute/construct1.m: New test.

From-SVN: r240618
parent 0ce1ecc7
2016-09-29 Martin Liska <mliska@suse.cz>
* doc/extend.texi: Remove limitation of Objective C for
__attribute__((constructor)) and __attribute__((destructor)).
2016-09-29 Richard Biener <rguenther@suse.de>
PR tree-optimization/77768
......
......@@ -2508,8 +2508,6 @@ same priority. The priorities for constructor and destructor
functions are the same as those specified for namespace-scope C++
objects (@pxref{C++ Attributes}).
These attributes are not currently implemented for Objective-C@.
@item deprecated
@itemx deprecated (@var{msg})
@cindex @code{deprecated} function attribute
......
2016-09-29 Martin Liska <mliska@suse.cz>
* objc/execute/construct1.m: New test.
2016-09-29 Richard Biener <rguenther@suse.de>
PR tree-optimization/77768
......
int i;
void hello (void) __attribute__ ((constructor));
void hello (void) { i = 1; }
int main (void) {
if (i != 1)
return 1;
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment