<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/diagnostics/entry-point-main-warning.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-05-15T09:15:43+00:00</updated>
<entry>
<title>Rename 'main' on some backends (#7105)</title>
<updated>2025-05-15T09:15:43+00:00</updated>
<author>
<name>Mukund Keshava</name>
<email>mkeshava@nvidia.com</email>
</author>
<published>2025-05-15T09:15:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=ed837e205f3e67c4ae112f544cfe486ca3cc8455'/>
<id>urn:sha1:ed837e205f3e67c4ae112f544cfe486ca3cc8455</id>
<content type='text'>
* Rename 'main' on some backednds

Fixes #5542

Some backends like cuda, metal, cpu do not allow 'main' as the entry
point. This commit adds a new warning that is emitted when a program
uses main as the entry point. In addition to emitting the warning, it
internally renames the entry point to "main_". It also adds a test to
check these for the three backends.

* format code

* move test to diagnostics

* rename test to diagnostic

* generate unique name

---------

Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;</content>
</entry>
</feed>
