Fix test.
volatile types are not trivially copyable.

PR17123.