<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/111423>111423</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [CUDA] Code example states that it should fail, but it does not
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            documentation,
            cuda
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          carlosgalvezp
      </td>
    </tr>
</table>

<pre>
    I'm testing the code example provided [here](https://llvm.org/docs/CompileCudaWithLLVM.html#using-a-different-class-on-host-device), but it does not appear to fail anymore, contrary to the documentation. Should it be updated?

https://godbolt.org/z/5bs8h1vWK

Note that I had to modify it slightly, the `#endif` probably was meant to be placed at the end of the struct.


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk2PmzAQhn-NuVhEMIQQDhx2EyGtuu2lavc8tgdwZTCyh7TZX185m6q7VS_-kD0f7zsPxmjHhagT9aOozxluPPnQaQzOxxHdhV7XTHlz7Z4ENLNkimyXUfJEUntDkn7hvDqSa_AXa8hIUT9OFEjUZwHHiXmNonoQ0AvonbvMOx9GAb3xOgroT35eraPTZvDF8vT8_P3zbuLZCai2aJcxx9zYYaBAC-faYYy5X_LJR84NXawmAa2Ak1QbS8vSeIpy8SxxXQmDZC8HtE7icp19oPRT-4UDhmt6SyKM19tMCyNbv-zk18lvzqRciuS2GmQyoupFcRbFw9v6UdPojfKO77JeBfS1isepvLx8eh_0xTNJnpDlk5zQpOqzN3a4plLR2XFid039pZ7EoRBQ0WLsIA5Fslahclf5E6OcCRdO4Yrk6lCTkci3KFqM9MPtGDlsmnfvG8hMV5m2ajGjrmzgWEELFWRTZxosG6B2ADi2-jhQCYem1VoZaJt2j5ntoIB9WRRN2UJTwq42xxKOSh3aQ6mV2ot9QTNat_sz38zGuFFXluUeqsyhIhdvgAF8sFsACDgJAL0ZTJf6nIUuZcnVNkaxL5yNHP_mZcvuhurp2_lB1Gd5eo9gZGSKby4nV99GmQD4DyLZFlz3zygtT5vaaT_fWb1v-Rr8D9IsoL8JS-DetV06-B0AAP__VZgPCg">