File: bug611223.c-expected

package info (click to toggle)
vala 0.56.18-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 57,520 kB
  • sloc: ansic: 581,293; sh: 5,357; makefile: 3,980; xml: 3,161; yacc: 1,219; lex: 374; javascript: 23
file content (86 lines) | stat: -rw-r--r-- 1,918 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* nullability_bug611223.c generated by valac, the Vala compiler
 * generated from nullability_bug611223.vala, do not modify */

#include <stdlib.h>
#include <string.h>
#include <glib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

#define _g_free0(var) (var = (g_free (var), NULL))

static void _vala_main (void);

static void
_vala_main (void)
{
	gchar* nullable = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_;
	gchar* non_null = NULL;
	gchar* _tmp2_;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_;
	gchar* some_null = NULL;
	gchar* _tmp5_;
	const gchar* _tmp6_ = NULL;
	gchar* also_non_null = NULL;
	gchar* _tmp8_;
	const gchar* _tmp9_ = NULL;
	const gchar* _tmp10_;
	gchar* really_non_null = NULL;
	gchar* _tmp12_;
	nullable = NULL;
	_tmp1_ = nullable;
	_tmp0_ = _tmp1_;
	if (_tmp0_ == NULL) {
		_tmp0_ = "";
	}
	_tmp2_ = g_strdup ((const gchar*) _tmp0_);
	non_null = _tmp2_;
	_tmp4_ = nullable;
	_tmp3_ = _tmp4_;
	if (_tmp3_ == NULL) {
		_tmp3_ = NULL;
	}
	_tmp5_ = g_strdup (_tmp3_);
	some_null = _tmp5_;
	_tmp6_ = NULL;
	if (_tmp6_ == NULL) {
		const gchar* _tmp7_;
		_tmp7_ = non_null;
		_tmp6_ = _tmp7_;
	}
	_tmp8_ = g_strdup ((const gchar*) _tmp6_);
	also_non_null = _tmp8_;
	_tmp10_ = non_null;
	_tmp9_ = _tmp10_;
	if (_tmp9_ == NULL) {
		const gchar* _tmp11_;
		_tmp11_ = nullable;
		_tmp9_ = _tmp11_;
	}
	_tmp12_ = g_strdup ((const gchar*) _tmp9_);
	really_non_null = _tmp12_;
	_g_free0 (really_non_null);
	_g_free0 (also_non_null);
	_g_free0 (some_null);
	_g_free0 (non_null);
	_g_free0 (nullable);
}

int
main (int argc,
      char ** argv)
{
	_vala_main ();
	return 0;
}